<script setup lang="ts">
import confirm from '@/components/confirm/index'
function btn() {
  confirm({ title: '大标题', text: '我是内容' })
    .then(() => {
      console.log('点击了确认')
    })
    .catch(() => {
      console.log('点击取消')
    })
}
</script>

<template>
  <button @click="btn">点击</button>
</template>

<style scoped></style>
